package com.fivestar.pmanager.web.auth;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;

public class MyUsernamePasswordAuthenticationToken extends UsernamePasswordAuthenticationToken
{
    private HttpServletRequest request;

    public MyUsernamePasswordAuthenticationToken(Object principal,
            Object credentials)
    {
        super(principal, credentials);
    }

    public MyUsernamePasswordAuthenticationToken(Object principal,
            Object credentials,
            Collection<? extends GrantedAuthority> authorities)
    {
        super(principal, credentials, authorities);
    }


    public HttpServletRequest getRequest()
    {
        return request;
    }


    public void setRequest(HttpServletRequest request)
    {
        this.request = request;
    }
}
